/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package db.interfaces;

import core.Shop;
import java.util.Collection;

/**
 *
 * @author Anton
 */
public interface ShopDAO
{
    Shop getShopById(long id);

    Collection<Shop> searchForShopsByName(String beginsWith);
    Collection<Shop> searchForShopsByParameters(String beginsWith, String fieldName, boolean asc);
    Collection<Shop> getShopsByName(String name);
    Collection<Shop> getAllShops();    

    boolean containsShop(Shop shop);
    boolean addShop(Shop shop);
    boolean editShop(Shop shop);
    boolean deleteShop(Shop shop);
}
